package org.lmind.example.common.service.notify;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="template")
public class TemplateMeta {
	
	@XmlElement
	private String subject;
	
	@XmlElement
	private String contentRef;
	
	@XmlElement
	private String mimeType;
	
	@XmlElementWrapper(name="attachments", nillable=true)
	@XmlElement(name="attachment", nillable=true)
	private List<String> attachments;

	/**
	 * @return the subject
	 */
	public String getSubject() {
		return subject;
	}

	/**
	 * @param subject the subject to set
	 */
	public void setSubject(String subject) {
		this.subject = subject;
	}

	/**
	 * @return the contentRef
	 */
	public String getContentRef() {
		return contentRef;
	}

	/**
	 * @param contentRef the contentRef to set
	 */
	public void setContentRef(String contentRef) {
		this.contentRef = contentRef;
	}

	/**
	 * @return the mimeType
	 */
	public String getMimeType() {
		return mimeType;
	}

	/**
	 * @param mimeType the mimeType to set
	 */
	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}

	/**
	 * @return the resources
	 */
	public List<String> getAttachments() {
		return attachments;
	}

	/**
	 * @param resources the resources to set
	 */
	public void setAttachments(List<String> attachments) {
		this.attachments = attachments;
	}
}
